package com.ycb;


import org.mybatis.spring.annotation.MapperScan;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @Author ycb
 * @Version 1.0
 * @Date 2024/9/30 20:44
 */
@SpringBootApplication
@MapperScan(basePackages = "com.ycb.mapper")//扫描mapper
@ServletComponentScan//扫描本地过滤器
@EnableTransactionManagement//事务注解管理
public class RuijiApplication {
    public static void main(String[] args) {
        Logger logger = LoggerFactory.getLogger(RuijiApplication.class);
        SpringApplication.run(RuijiApplication.class);
        logger.info("项目启动...");
    }
}
